<include file="public@header" />
</head>
<body>
<div class="wrap">
	<ul class="nav nav-tabs">
		<li><a href="{:url('index')}">员工列表</a></li>
		<li><a href="{:url('add')}">添加员工</a></li>
		<li class="active"><a>编辑员工</a></li>
	</ul>
	<form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('edit')}">
		<!--<div class="form-group">-->
			<!--<label for="input-user_login" class="col-sm-2 control-label"><span class="form-required">*</span>账号</label>-->
			<!--<div class="col-md-6 col-sm-10">-->
				<!--<input type="text" class="form-control" required id="input-user_login" name="user_login" value="{$result.user_login}">-->
			<!--</div>-->
		<!--</div>-->
		<div class="form-group">
			<label for="input-user_email" class="col-sm-2 control-label"><span class="form-required">*</span>邮箱</label>
			<div class="col-md-6 col-sm-10">
				<input type="email" class="form-control" disabled id="input-user_email" required name="user_email" value="{$result.user_email}">
			</div>
		</div>
		<div class="form-group">
			<label for="input-user_pass" class="col-sm-2 control-label"><span class="form-required">*</span>密码</label>
			<div class="col-md-6 col-sm-10">
				<input type="password" class="form-control" id="input-user_pass" name="user_pass" placeholder="password">
			</div>
		</div>
		<div class="form-group">
			<label for="input-user_nickname" class="col-sm-2 control-label"><span class="form-required">*</span>姓名</label>
			<div class="col-md-6 col-sm-10">
				<input type="text" class="form-control" required id="input-user_nickname" name="user_nickname" value="{$result.user_nickname}">
			</div>
		</div>
		<div class="form-group">
			<label for="input-dep_id" class="col-sm-2 control-label"><span class="form-required">*</span>所属部门</label>
			<div class="col-md-6 col-sm-10">
				<input class="form-control" type="text" style="width:400px;" required value="{$result.dep_name}"
					   placeholder="请选择部门" onclick="doSelectLayer(this);"
					   data-url="{:url('department/select')}" data-id="input-dep_id" name="layer_temp[]" data-son_id="input-role_id"
					   readonly/>
				<input class="form-control" type="hidden" value="{$result.dep_id}" name="dep_id"
					   id="input-dep_id"/>
			</div>
		</div>
		<div class="form-group">
			<label for="input-role_id" class="col-sm-2 control-label"><span class="form-required">*</span>职位</label>
			<div class="col-md-6 col-sm-10">
				<input class="form-control" type="text" style="width:400px;" required value="{$result.role_name}"
					   placeholder="请选择职位" onclick="doSelectLayer(this);"
					   data-url="{:url('position/select')}" data-id="input-role_id" name="layer_temp[]" data-parent_id="input-dep_id"
					   readonly/>
				<input class="form-control" type="hidden" value="{$result.role_id}" name="role_id"
					   id="input-role_id"/>
			</div>
		</div>
		<div class="form-group">
			<label for="input-mobile" class="col-sm-2 control-label">联系电话</label>
			<div class="col-md-6 col-sm-10">
				<input type="tel" class="form-control" id="input-mobile" name="mobile" value="{$result.mobile}">
			</div>
		</div>
		<div class="form-group">
			<div class="col-sm-offset-2 col-sm-10">
				<input type="hidden" name="id" value="{$result.id}" />
				<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
				<a class="btn btn-default" href="javascript:history.back(-1);">返回</a>
			</div>
		</div>
	</form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>